﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RPGKata
{
    class Armor
    {
        private string name;
        private int protection;
        private int encumbrance;

        public void setName(string n)
        {
            name = n;
        }

        public string getName()
        {
            return name;
        }

        public void setProtection(string num)
        {
            while (!Roll.isValidInt(num))
            {
                Console.WriteLine("That's not a number! Please choose again.");
                num = Console.ReadLine();
            }
            int number = int.Parse(num);
            protection = number;
        }

        public int getProtection()
        {
            return protection;
        }

        public void setEncumbrance(string num)
        {
            while (!Roll.isValidInt(num))
            {
                Console.WriteLine("That's not a number! Please choose again.");
                num = Console.ReadLine();
            }
            int number = int.Parse(num);
            encumbrance = number;
        }

        public int getEncumbrance()
        {
            return encumbrance;
        }
    }
}
